<?php

namespace app\models\base;

use Yii;

/**
 * This is the model class for table "{{%tody_cost}}".
 *
 * @property string $id
 * @property integer $user_id
 * @property double $all_cost
 * @property integer $last_modify
 */
class TodayCost extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%today_cost}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['user_id', 'all_cost', 'last_modify'], 'required'],
            [['user_id', 'last_modify'], 'integer'],
            [['all_cost'], 'number']
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'user_id' => 'User ID',
            'all_cost' => 'All Cost',
            'last_modify' => 'Last Modify',
        ];
    }
}
